<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>麻将: Game类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="log.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">麻将<span id="projectnumber">&#160;beta 4.1</span>
   </div>
   <div id="projectbrief">This is the final homework</div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.svg"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_game.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_game-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">Game类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_game_8h_source.html">Game.h</a>&gt;</code></p>
<div class="dynheader">
Game 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game__coll__graph.png" border="0" usemap="#a_game_coll__map" alt="Collaboration graph"/></div>
<map name="a_game_coll__map" id="a_game_coll__map">
<area shape="rect" title=" " alt="" coords="14,556,211,839"/>
<area shape="rect" href="class_people.html" title=" " alt="" coords="5,5,220,479"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad59df6562a58a614fda24622d3715b65"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#ad59df6562a58a614fda24622d3715b65">Game</a> ()</td></tr>
<tr class="separator:ad59df6562a58a614fda24622d3715b65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3d112ca6e0e55150d2fdbc704474530"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#ae3d112ca6e0e55150d2fdbc704474530">~Game</a> ()</td></tr>
<tr class="separator:ae3d112ca6e0e55150d2fdbc704474530"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dacf7651de226d502a807213d1752cd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a9dacf7651de226d502a807213d1752cd">PlayerInit</a> ()</td></tr>
<tr class="memdesc:a9dacf7651de226d502a807213d1752cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">玩家属性初始化  <a href="class_game.html#a9dacf7651de226d502a807213d1752cd">更多...</a><br /></td></tr>
<tr class="separator:a9dacf7651de226d502a807213d1752cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40a28958af1dd0e5cb60e0cb88ac5862"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a40a28958af1dd0e5cb60e0cb88ac5862">StackInit</a> ()</td></tr>
<tr class="memdesc:a40a28958af1dd0e5cb60e0cb88ac5862"><td class="mdescLeft">&#160;</td><td class="mdescRight">总牌堆初始化  <a href="class_game.html#a40a28958af1dd0e5cb60e0cb88ac5862">更多...</a><br /></td></tr>
<tr class="separator:a40a28958af1dd0e5cb60e0cb88ac5862"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a428b86d8c6819c7dd6473944150badf2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a428b86d8c6819c7dd6473944150badf2">TouchCard</a> ()</td></tr>
<tr class="memdesc:a428b86d8c6819c7dd6473944150badf2"><td class="mdescLeft">&#160;</td><td class="mdescRight">摸牌  <a href="class_game.html#a428b86d8c6819c7dd6473944150badf2">更多...</a><br /></td></tr>
<tr class="separator:a428b86d8c6819c7dd6473944150badf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a785fdf605191da3aea64b8746dca7fa8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a785fdf605191da3aea64b8746dca7fa8">start</a> (int beginer)</td></tr>
<tr class="memdesc:a785fdf605191da3aea64b8746dca7fa8"><td class="mdescLeft">&#160;</td><td class="mdescRight">以beginer为庄家开始游戏  <a href="class_game.html#a785fdf605191da3aea64b8746dca7fa8">更多...</a><br /></td></tr>
<tr class="separator:a785fdf605191da3aea64b8746dca7fa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae597b45d0add94ae2e16aadc99cdeabe"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#ae597b45d0add94ae2e16aadc99cdeabe">IsFinished</a> ()</td></tr>
<tr class="memdesc:ae597b45d0add94ae2e16aadc99cdeabe"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断游戏是否结束  <a href="class_game.html#ae597b45d0add94ae2e16aadc99cdeabe">更多...</a><br /></td></tr>
<tr class="separator:ae597b45d0add94ae2e16aadc99cdeabe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9241395aba45b19f98cb96420b4c1c41"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a9241395aba45b19f98cb96420b4c1c41">PrintRandomStack</a> ()</td></tr>
<tr class="memdesc:a9241395aba45b19f98cb96420b4c1c41"><td class="mdescLeft">&#160;</td><td class="mdescRight">输出牌堆内容  <a href="class_game.html#a9241395aba45b19f98cb96420b4c1c41">更多...</a><br /></td></tr>
<tr class="separator:a9241395aba45b19f98cb96420b4c1c41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a288848b555bb8f2b7b64dc3c6b8bb8b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a288848b555bb8f2b7b64dc3c6b8bb8b5">RandomVirusTransmission</a> ()</td></tr>
<tr class="memdesc:a288848b555bb8f2b7b64dc3c6b8bb8b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">相对独立于打牌的直接接触途径，本函数模拟理想情况下空气传播病毒的过程，  <a href="class_game.html#a288848b555bb8f2b7b64dc3c6b8bb8b5">更多...</a><br /></td></tr>
<tr class="separator:a288848b555bb8f2b7b64dc3c6b8bb8b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a775f4f1eecec6dc290af913f18dcd253"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a775f4f1eecec6dc290af913f18dcd253">DeckShuffle</a> (unsigned seed)</td></tr>
<tr class="memdesc:a775f4f1eecec6dc290af913f18dcd253"><td class="mdescLeft">&#160;</td><td class="mdescRight">考虑洗牌过程中，病毒在牌与牌之间的传播  <a href="class_game.html#a775f4f1eecec6dc290af913f18dcd253">更多...</a><br /></td></tr>
<tr class="separator:a775f4f1eecec6dc290af913f18dcd253"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a23c28c896396d2ad6e9c3fad26e4f1d2"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="class_people.html">People</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a23c28c896396d2ad6e9c3fad26e4f1d2">ReactionGroup</a></td></tr>
<tr class="separator:a23c28c896396d2ad6e9c3fad26e4f1d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5807f15aad13ef1be585e264111b5443"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="class_mahjong.html">Mahjong</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a5807f15aad13ef1be585e264111b5443">RandomStack</a> = std::vector&lt;<a class="el" href="class_mahjong.html">Mahjong</a>&gt;(136)</td></tr>
<tr class="memdesc:a5807f15aad13ef1be585e264111b5443"><td class="mdescLeft">&#160;</td><td class="mdescRight">总牌堆  <a href="class_game.html#a5807f15aad13ef1be585e264111b5443">更多...</a><br /></td></tr>
<tr class="separator:a5807f15aad13ef1be585e264111b5443"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc98719d420c8cdcb4ffc1a2bf837bbf"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::vector&lt; bool &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#acc98719d420c8cdcb4ffc1a2bf837bbf">Touchface</a> = std::vector&lt;std::vector&lt;bool&gt;&gt;(4, std::vector&lt;bool&gt;(136, 0))</td></tr>
<tr class="separator:acc98719d420c8cdcb4ffc1a2bf837bbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acceeeceb462f412367b88a75d5ea350c"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="class_mahjong.html">Mahjong</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#acceeeceb462f412367b88a75d5ea350c">OtherStack</a></td></tr>
<tr class="memdesc:acceeeceb462f412367b88a75d5ea350c"><td class="mdescLeft">&#160;</td><td class="mdescRight">被打出的牌的牌堆  <a href="class_game.html#acceeeceb462f412367b88a75d5ea350c">更多...</a><br /></td></tr>
<tr class="separator:acceeeceb462f412367b88a75d5ea350c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60609240114fc1f1e7b2dfb7d1c9d75a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a60609240114fc1f1e7b2dfb7d1c9d75a">index</a> = 0</td></tr>
<tr class="separator:a60609240114fc1f1e7b2dfb7d1c9d75a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33320bf97e8392d56c36ccdd5b159318"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_people.html">People</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a33320bf97e8392d56c36ccdd5b159318">Playergroup</a> [4]</td></tr>
<tr class="separator:a33320bf97e8392d56c36ccdd5b159318"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a358405ad6709906168354068ef2ce74c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_people.html">People</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a358405ad6709906168354068ef2ce74c">Current</a></td></tr>
<tr class="separator:a358405ad6709906168354068ef2ce74c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73417536310c6f341c7ef86a0c77896b"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a73417536310c6f341c7ef86a0c77896b">VirusLoadOfAir</a></td></tr>
<tr class="memdesc:a73417536310c6f341c7ef86a0c77896b"><td class="mdescLeft">&#160;</td><td class="mdescRight">空气中的病毒含量  <a href="class_game.html#a73417536310c6f341c7ef86a0c77896b">更多...</a><br /></td></tr>
<tr class="separator:a73417536310c6f341c7ef86a0c77896b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="ad59df6562a58a614fda24622d3715b65" name="ad59df6562a58a614fda24622d3715b65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad59df6562a58a614fda24622d3715b65">&#9670;&nbsp;</a></span>Game()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Game::Game </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_ad59df6562a58a614fda24622d3715b65_cgraph.png" border="0" usemap="#aclass_game_ad59df6562a58a614fda24622d3715b65_cgraph" alt=""/></div>
<map name="aclass_game_ad59df6562a58a614fda24622d3715b65_cgraph" id="aclass_game_ad59df6562a58a614fda24622d3715b65_cgraph">
<area shape="rect" title=" " alt="" coords="5,107,105,133"/>
<area shape="rect" href="class_game.html#a9dacf7651de226d502a807213d1752cd" title="玩家属性初始化" alt="" coords="153,81,272,108"/>
<area shape="rect" href="class_game.html#a40a28958af1dd0e5cb60e0cb88ac5862" title="总牌堆初始化" alt="" coords="155,132,271,159"/>
<area shape="rect" href="class_people.html#a7e39ef53fe714d4eddd3db41e1151ee8" title="设置尾指针" alt="" coords="323,5,437,32"/>
<area shape="rect" href="class_people.html#a6fce21b829069d86b048a7fef5255e6e" title="设置头指针" alt="" coords="321,56,439,83"/>
<area shape="rect" href="class_people.html#a0a724922abf433d0bf7e79974ed2aeaa" title="设置本人ID" alt="" coords="330,107,430,133"/>
<area shape="rect" href="class_people.html#a2bd66d259b26c882a6eff7b0e17c58d8" title="设置携带病毒量" alt="" coords="320,157,440,184"/>
</map>
</div>

</div>
</div>
<a id="ae3d112ca6e0e55150d2fdbc704474530" name="ae3d112ca6e0e55150d2fdbc704474530"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3d112ca6e0e55150d2fdbc704474530">&#9670;&nbsp;</a></span>~Game()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Game::~Game </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a775f4f1eecec6dc290af913f18dcd253" name="a775f4f1eecec6dc290af913f18dcd253"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a775f4f1eecec6dc290af913f18dcd253">&#9670;&nbsp;</a></span>DeckShuffle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Game::DeckShuffle </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>seed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>考虑洗牌过程中，病毒在牌与牌之间的传播 </p>
<p >s </p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_a775f4f1eecec6dc290af913f18dcd253_icgraph.png" border="0" usemap="#aclass_game_a775f4f1eecec6dc290af913f18dcd253_icgraph" alt=""/></div>
<map name="aclass_game_a775f4f1eecec6dc290af913f18dcd253_icgraph" id="aclass_game_a775f4f1eecec6dc290af913f18dcd253_icgraph">
<area shape="rect" title="考虑洗牌过程中，病毒在牌与牌之间的传播" alt="" coords="243,5,377,32"/>
<area shape="rect" href="class_game.html#a785fdf605191da3aea64b8746dca7fa8" title="以beginer为庄家开始游戏" alt="" coords="104,5,195,32"/>
<area shape="rect" href="main_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="ae597b45d0add94ae2e16aadc99cdeabe" name="ae597b45d0add94ae2e16aadc99cdeabe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae597b45d0add94ae2e16aadc99cdeabe">&#9670;&nbsp;</a></span>IsFinished()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Game::IsFinished </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断游戏是否结束 </p>
<p >牌局是否结束的判定函数 </p>
<dl class="section return"><dt>返回</dt><dd>牌局结束返回true，牌局未结束返回false</dd></dl>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_ae597b45d0add94ae2e16aadc99cdeabe_icgraph.png" border="0" usemap="#aclass_game_ae597b45d0add94ae2e16aadc99cdeabe_icgraph" alt=""/></div>
<map name="aclass_game_ae597b45d0add94ae2e16aadc99cdeabe_icgraph" id="aclass_game_ae597b45d0add94ae2e16aadc99cdeabe_icgraph">
<area shape="rect" title="判断游戏是否结束" alt="" coords="243,5,367,32"/>
<area shape="rect" href="class_game.html#a785fdf605191da3aea64b8746dca7fa8" title="以beginer为庄家开始游戏" alt="" coords="104,5,195,32"/>
<area shape="rect" href="main_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a9dacf7651de226d502a807213d1752cd" name="a9dacf7651de226d502a807213d1752cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9dacf7651de226d502a807213d1752cd">&#9670;&nbsp;</a></span>PlayerInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Game::PlayerInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>玩家属性初始化 </p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_a9dacf7651de226d502a807213d1752cd_cgraph.png" border="0" usemap="#aclass_game_a9dacf7651de226d502a807213d1752cd_cgraph" alt=""/></div>
<map name="aclass_game_a9dacf7651de226d502a807213d1752cd_cgraph" id="aclass_game_a9dacf7651de226d502a807213d1752cd_cgraph">
<area shape="rect" title="玩家属性初始化" alt="" coords="5,81,124,108"/>
<area shape="rect" href="class_people.html#a7e39ef53fe714d4eddd3db41e1151ee8" title="设置尾指针" alt="" coords="175,5,289,32"/>
<area shape="rect" href="class_people.html#a6fce21b829069d86b048a7fef5255e6e" title="设置头指针" alt="" coords="173,56,291,83"/>
<area shape="rect" href="class_people.html#a0a724922abf433d0bf7e79974ed2aeaa" title="设置本人ID" alt="" coords="182,107,282,133"/>
<area shape="rect" href="class_people.html#a2bd66d259b26c882a6eff7b0e17c58d8" title="设置携带病毒量" alt="" coords="172,157,292,184"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_a9dacf7651de226d502a807213d1752cd_icgraph.png" border="0" usemap="#aclass_game_a9dacf7651de226d502a807213d1752cd_icgraph" alt=""/></div>
<map name="aclass_game_a9dacf7651de226d502a807213d1752cd_icgraph" id="aclass_game_a9dacf7651de226d502a807213d1752cd_icgraph">
<area shape="rect" title="玩家属性初始化" alt="" coords="153,5,272,32"/>
<area shape="rect" href="class_game.html#ad59df6562a58a614fda24622d3715b65" title=" " alt="" coords="5,5,105,32"/>
</map>
</div>

</div>
</div>
<a id="a9241395aba45b19f98cb96420b4c1c41" name="a9241395aba45b19f98cb96420b4c1c41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9241395aba45b19f98cb96420b4c1c41">&#9670;&nbsp;</a></span>PrintRandomStack()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Game::PrintRandomStack </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>输出牌堆内容 </p>
<p >&lt;输出花色</p>
<p >&lt;输出该麻将牌携带病毒含量</p>

</div>
</div>
<a id="a288848b555bb8f2b7b64dc3c6b8bb8b5" name="a288848b555bb8f2b7b64dc3c6b8bb8b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a288848b555bb8f2b7b64dc3c6b8bb8b5">&#9670;&nbsp;</a></span>RandomVirusTransmission()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Game::RandomVirusTransmission </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>相对独立于打牌的直接接触途径，本函数模拟理想情况下空气传播病毒的过程， </p>
<p >十分理想的，假设每过random局麻将， 病源使空气中的病毒含量增加， 考虑到麻将室的地方狭小， 做出空气中的病毒对每一个玩家感染概率相同的假设 </p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_a288848b555bb8f2b7b64dc3c6b8bb8b5_cgraph.png" border="0" usemap="#aclass_game_a288848b555bb8f2b7b64dc3c6b8bb8b5_cgraph" alt=""/></div>
<map name="aclass_game_a288848b555bb8f2b7b64dc3c6b8bb8b5_cgraph" id="aclass_game_a288848b555bb8f2b7b64dc3c6b8bb8b5_cgraph">
<area shape="rect" title="相对独立于打牌的直接接触途径，本函数模拟理想情况下空气传播病毒的过程，" alt="" coords="5,31,225,57"/>
<area shape="rect" href="class_people.html#a533f5900d96ffba0854b7db128089376" title=" " alt="" coords="273,5,441,32"/>
<area shape="rect" href="class_people.html#ab538e51a9e84ab1253c782ec889d0347" title="获得病毒携带量" alt="" coords="297,56,418,83"/>
</map>
</div>

</div>
</div>
<a id="a40a28958af1dd0e5cb60e0cb88ac5862" name="a40a28958af1dd0e5cb60e0cb88ac5862"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40a28958af1dd0e5cb60e0cb88ac5862">&#9670;&nbsp;</a></span>StackInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Game::StackInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>总牌堆初始化 </p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_a40a28958af1dd0e5cb60e0cb88ac5862_icgraph.png" border="0" usemap="#aclass_game_a40a28958af1dd0e5cb60e0cb88ac5862_icgraph" alt=""/></div>
<map name="aclass_game_a40a28958af1dd0e5cb60e0cb88ac5862_icgraph" id="aclass_game_a40a28958af1dd0e5cb60e0cb88ac5862_icgraph">
<area shape="rect" title="总牌堆初始化" alt="" coords="153,5,269,32"/>
<area shape="rect" href="class_game.html#ad59df6562a58a614fda24622d3715b65" title=" " alt="" coords="5,5,105,32"/>
</map>
</div>

</div>
</div>
<a id="a785fdf605191da3aea64b8746dca7fa8" name="a785fdf605191da3aea64b8746dca7fa8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a785fdf605191da3aea64b8746dca7fa8">&#9670;&nbsp;</a></span>start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Game::start </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>beginer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>以beginer为庄家开始游戏 </p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_a785fdf605191da3aea64b8746dca7fa8_cgraph.png" border="0" usemap="#aclass_game_a785fdf605191da3aea64b8746dca7fa8_cgraph" alt=""/></div>
<map name="aclass_game_a785fdf605191da3aea64b8746dca7fa8_cgraph" id="aclass_game_a785fdf605191da3aea64b8746dca7fa8_cgraph">
<area shape="rect" title="以beginer为庄家开始游戏" alt="" coords="5,222,96,248"/>
<area shape="rect" href="class_people.html#a39d6f2018afa737f952e877cefecabbb" title="摸牌" alt="" coords="386,44,506,71"/>
<area shape="rect" href="class_people.html#af3b546cb0846f22c61bdcd9cfb64fbec" title="获得尾指针" alt="" coords="192,196,289,223"/>
<area shape="rect" href="class_people.html#a8eaaff80a02ac3fd51ac7fab624411d6" title="判断能不能吃上家" alt="" coords="185,247,297,274"/>
<area shape="rect" href="class_people.html#a2e396be75e76096c7fbe0fa102c3a8b4" title="整理牌墙" alt="" coords="385,146,507,172"/>
<area shape="rect" href="class_people.html#adb9242235a8ed742fbb2f08b2ec39128" title="进行吃牌之后的操作" alt="" coords="196,95,285,122"/>
<area shape="rect" href="class_game.html#a775f4f1eecec6dc290af913f18dcd253" title="考虑洗牌过程中，病毒在牌与牌之间的传播" alt="" coords="173,298,308,324"/>
<area shape="rect" href="class_game.html#ae597b45d0add94ae2e16aadc99cdeabe" title="判断游戏是否结束" alt="" coords="179,348,303,375"/>
<area shape="rect" href="class_people.html#a19926c8c705e6cd58715cd6a5f532847" title="出牌" alt="" coords="181,399,300,426"/>
<area shape="rect" href="class_game.html#a428b86d8c6819c7dd6473944150badf2" title="摸牌" alt="" coords="177,44,304,71"/>
<area shape="rect" href="class_people.html#a7ced3699a560d89804be7dc175576c84" title=" " alt="" coords="144,450,337,492"/>
<area shape="rect" href="class_people.html#a2fb7fd72e7ebdf5f5c2db40da648f881" title=" " alt="" coords="555,37,753,78"/>
<area shape="rect" href="class_people.html#a4dbffa6c1763150dae9f3b808ddbc12d" title="快速排序" alt="" coords="602,146,706,172"/>
<area shape="rect" href="class_people.html#ad6148cacf709fcca92a0002290f35641" title="比较两个麻将的花色，返回bool值" alt="" coords="801,146,924,172"/>
<area shape="rect" href="class_people.html#a832a0271d7d8e98db6254c2308c46bee" title="把手牌加入开放牌堆" alt="" coords="387,95,505,122"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_a785fdf605191da3aea64b8746dca7fa8_icgraph.png" border="0" usemap="#aclass_game_a785fdf605191da3aea64b8746dca7fa8_icgraph" alt=""/></div>
<map name="aclass_game_a785fdf605191da3aea64b8746dca7fa8_icgraph" id="aclass_game_a785fdf605191da3aea64b8746dca7fa8_icgraph">
<area shape="rect" title="以beginer为庄家开始游戏" alt="" coords="104,5,195,32"/>
<area shape="rect" href="main_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a428b86d8c6819c7dd6473944150badf2" name="a428b86d8c6819c7dd6473944150badf2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a428b86d8c6819c7dd6473944150badf2">&#9670;&nbsp;</a></span>TouchCard()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Game::TouchCard </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>摸牌 </p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_a428b86d8c6819c7dd6473944150badf2_cgraph.png" border="0" usemap="#aclass_game_a428b86d8c6819c7dd6473944150badf2_cgraph" alt=""/></div>
<map name="aclass_game_a428b86d8c6819c7dd6473944150badf2_cgraph" id="aclass_game_a428b86d8c6819c7dd6473944150badf2_cgraph">
<area shape="rect" title="摸牌" alt="" coords="5,13,132,39"/>
<area shape="rect" href="class_people.html#a39d6f2018afa737f952e877cefecabbb" title="摸牌" alt="" coords="180,13,300,39"/>
<area shape="rect" href="class_people.html#a2fb7fd72e7ebdf5f5c2db40da648f881" title=" " alt="" coords="348,5,547,47"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_game_a428b86d8c6819c7dd6473944150badf2_icgraph.png" border="0" usemap="#aclass_game_a428b86d8c6819c7dd6473944150badf2_icgraph" alt=""/></div>
<map name="aclass_game_a428b86d8c6819c7dd6473944150badf2_icgraph" id="aclass_game_a428b86d8c6819c7dd6473944150badf2_icgraph">
<area shape="rect" title="摸牌" alt="" coords="243,5,369,32"/>
<area shape="rect" href="class_game.html#a785fdf605191da3aea64b8746dca7fa8" title="以beginer为庄家开始游戏" alt="" coords="104,5,195,32"/>
<area shape="rect" href="main_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a358405ad6709906168354068ef2ce74c" name="a358405ad6709906168354068ef2ce74c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a358405ad6709906168354068ef2ce74c">&#9670;&nbsp;</a></span>Current</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_people.html">People</a>* Game::Current</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a60609240114fc1f1e7b2dfb7d1c9d75a" name="a60609240114fc1f1e7b2dfb7d1c9d75a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60609240114fc1f1e7b2dfb7d1c9d75a">&#9670;&nbsp;</a></span>index</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Game::index = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="acceeeceb462f412367b88a75d5ea350c" name="acceeeceb462f412367b88a75d5ea350c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acceeeceb462f412367b88a75d5ea350c">&#9670;&nbsp;</a></span>OtherStack</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="class_mahjong.html">Mahjong</a>&gt; Game::OtherStack</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>被打出的牌的牌堆 </p>

</div>
</div>
<a id="a33320bf97e8392d56c36ccdd5b159318" name="a33320bf97e8392d56c36ccdd5b159318"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33320bf97e8392d56c36ccdd5b159318">&#9670;&nbsp;</a></span>Playergroup</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_people.html">People</a>* Game::Playergroup[4]</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a5807f15aad13ef1be585e264111b5443" name="a5807f15aad13ef1be585e264111b5443"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5807f15aad13ef1be585e264111b5443">&#9670;&nbsp;</a></span>RandomStack</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="class_mahjong.html">Mahjong</a>&gt; Game::RandomStack = std::vector&lt;<a class="el" href="class_mahjong.html">Mahjong</a>&gt;(136)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>总牌堆 </p>

</div>
</div>
<a id="a23c28c896396d2ad6e9c3fad26e4f1d2" name="a23c28c896396d2ad6e9c3fad26e4f1d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23c28c896396d2ad6e9c3fad26e4f1d2">&#9670;&nbsp;</a></span>ReactionGroup</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="class_people.html">People</a>*&gt; Game::ReactionGroup</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="acc98719d420c8cdcb4ffc1a2bf837bbf" name="acc98719d420c8cdcb4ffc1a2bf837bbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc98719d420c8cdcb4ffc1a2bf837bbf">&#9670;&nbsp;</a></span>Touchface</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::vector&lt;bool&gt; &gt; Game::Touchface = std::vector&lt;std::vector&lt;bool&gt;&gt;(4, std::vector&lt;bool&gt;(136, 0))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a73417536310c6f341c7ef86a0c77896b" name="a73417536310c6f341c7ef86a0c77896b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73417536310c6f341c7ef86a0c77896b">&#9670;&nbsp;</a></span>VirusLoadOfAir</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float Game::VirusLoadOfAir</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>空气中的病毒含量 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Data/gitee/Mahjong01/<a class="el" href="_game_8h_source.html">Game.h</a></li>
<li>D:/Data/gitee/Mahjong01/<a class="el" href="_game_8cpp.html">Game.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_game.html">Game</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
  </ul>
</div>
</body>
</html>
